package com.parking.status.sync.service;

import com.parking.status.sync.entity.ParkingStatus;
import com.parking.status.sync.repository.ParkingStatusRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Jianjun.Hu on 2015/9/14.
 */

@Service
public class ParkingData {

    @Autowired
    private ParkingStatusRepository parkingStatusRepository;

    public List<ParkingStatus> findMoreParkingStatus() {

        return null;

    }

    public void updateParkingStatusDo(List<Long> idList) {

    }

    public long addParkingStatus(ParkingStatus parkingStatus) {
        parkingStatusRepository.save(parkingStatus);
        return parkingStatus.getId();
    }


}
